package blue.mqtt4j.core.lexer;

/**
 * @author Jin Zheng
 * @since 1.0 2020-10-20
 */
public class TextUtil
{
	private TextUtil()
	{
	}

	public static boolean isLetter(char ch)
	{
		return ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z';
	}

	public static boolean isDigit(char ch)
	{
		return ch >= '0' && ch <= '9';
	}

	public static boolean isBlank(char ch)
	{
		return ch == ' ' || ch == '\t' || ch == '\n';
	}

}
